package com.aiit.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_lingjian")
public class LingJian {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "零件名")
    private String name;
    @ApiModelProperty(value = "零件价格")
    private double price;
    @ApiModelProperty(value = "零件数量")
    private Integer number;
    @ApiModelProperty(value = "零件状态")
    private String state;
    @ApiModelProperty(value = "零件历史总数量")
    private Integer totalNumber;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    //逻辑删除
    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "deleted")
    @TableLogic
    private Integer deleted;


}
